package io.renren.modules.tree.controller;

import io.renren.common.utils.R;
import io.renren.modules.tree.service.TreeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author A夜兔A
 * @data 2021年11月19日 14:35
 */
@RestController
@RequestMapping("/tree")
public class TreeController {


    @Autowired
    private TreeService treeService;


    @ApiOperation("获得用户树")
    @GetMapping("/getUserTree")
    public R getUserTree(){
        return treeService.getUserTree();
    }

}
